Repository navigation
Conversation
Allow services, tools, and custom validators to mount operator-owned
host directories into their Docker containers. Mounts are read-only
unless marked writable, and relative sources resolve beside config.yaml.
```
bind-mounts:
- source: ./exports
target: /exports
writable: true
```
Before any task starts, the runner verifies that each mount source used
by the selected tasks exists and is a directory. Unused definitions are
not checked. Sources are checked again when containers are created.
Mount targets must not overlap other mounts in the same container,
including tool shared, auxiliary, and parameter-file paths.
Service-input templates can use `{{ .Service.InstanceID }}` to create a
unique per-instance export directory, including across retries.
petmal
force-pushed
the
feat/container-bind-mounts
branch
from
November 12, 2026 00:07
ab883f5 to
de93e29
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task services lose exported files when their containers are removed. The existing tool
shared-diris intentionally temporary. Operators can now attach a pre-existing host directory to an individual service, tool, or custom validator usingbind-mountsin the main config. Mounts default to read-only, and MindTrial leaves the source in place when the run ends.Service inputs can use
{{ .ServiceInstance }}to give each attempt its own export path, including retries with the same seed. A ready service now gets up to ten seconds to flush its data before MindTrial collects its final logs and removes the container. A failed stop still triggers resource cleanup. Nothing is automatically exposed to dependent tools.Validation:
go build ./...andgo test -tags=test ./...passed locally. Added tests for configuration and mount collisions, runtime errors, retries, validator mounts, and stop failures. The Go workflow also runs a Docker integration test that starts two services and reads their shutdown markers from the host after teardown; no model credentials are required.